import { Component, OnInit } from '@angular/core';
import {Location} from '@angular/common';
import {ActivatedRoute, Router} from "@angular/router";

@Component({
  selector: 'app-exhibition-station-overview',
  templateUrl: './station-overview.component.html',
  styleUrls: ['./station-overview.component.css']
})
export class StationOverviewComponent implements OnInit {
  public data1:any=[{y:80, color:'#ed4227'}, {y:30, color:'#3ec222'}, {y:40, color: '#3ec222'}];
  public data2:any=[{y:80, color:'#ed4227'}, {y:40, color:'#3ec222'}, {y:60, color: '#fcc81d'}];
  public data3:any=[{y:40, color:'#3ec222'}, {y:50, color:'#3ec222'}, {y:80, color: '#ed4227'}];
  public data4:any=[{y:80, color:'#ed4227'}, {y:40, color:'#3ec222'}, {y:50, color: '#3ec222'}];
  public data5:any=[{y:70, color:'#fcc81d'}, {y:40, color:'#3ec222'}, {y:60, color: '#fcc81d'}];
  public data6:any=[{y:40, color:'#fcc81d'}, {y:20, color:'#3ec222'}];
  public data7:any=[{y:50, color:'#fcc81d'}, {y:70, color:'#ed4227'}];
  public data8:any=[{y:30, color:'#3ec222'}, {y:40, color:'#3ec222'}];
  constructor(
  	private router: Router,
  	private location:Location
  ) { }

  ngOnInit() {
  }
  public goBack(flag?:boolean){
    if(flag){
      this.location.back()
    }
    else {
      this.router.navigate(['/pages/home'])
    }
  }
  public go() {
    this.router.navigate(['/pages/condition-monitoring/forecast-overview/6']);
  }
  public navigator(){
    this.router.navigate(['/pages/condition-monitoring/diagram-overview/3']);
  }
}
